package com.hll.basic.exception;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/** Date:2021/7/10 Author:ybc Description: */
@Controller
public class TestController {

  // FirstInterceptor-->preHandle
  // SecondInterceptor-->preHandle
  // SecondInterceptor-->postHandle
  // FirstInterceptor-->postHandle
  // SecondInterceptor-->afterCompletion
  // FirstInterceptor-->afterCompletion
  @RequestMapping("/interceptor/test")
  public String testInterceptor() {
    return "success";
  }

  @RequestMapping("/exceptionHandler/test")
  public String testExceptionHandler() {
    System.out.println(1 / 0);
    return "success";
  }
}
